package com.atguigu.eduorder.client;

import com.atguigu.commonutils.ordervo.CourseWebVoOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @Author: GengKY
 * @Date: 2022/5/4 15:00
 */
@Component
@FeignClient("service-video")
public interface VideoClient {

    /**
     * 根据课程ID查询课程信息，目的在于 service-order 中的远程调用
     */
    @PostMapping("/eduService/coursefront/getCourseInfoOrder/{id}")
    CourseWebVoOrder getCourseInfoOrder(@PathVariable("id") String id);





}
